package com.xsqf.jt808.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author
 * @since 2020-07-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_location_record")
@ApiModel(value = "LocationRecord对象", description = "终端上传机动车位置信息")
public class LocationRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键Id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "报警标志")
    @TableField("alarm")
    private Integer alarm;

    @ApiModelProperty(value = "方向")
    @TableField("direction")
    private Integer direction;

    @ApiModelProperty(value = "海拔")
    @TableField("elevation")
    private Integer elevation;

    @ApiModelProperty(value = "纬度")
    @TableField("latitude")
    private Long latitude;

    @ApiModelProperty(value = "经度")
    @TableField("longitude")
    private Long longitude;

    @ApiModelProperty(value = "速度")
    @TableField("speed")
    private Integer speed;

    @ApiModelProperty(value = "终端手机号")
    @TableField("terminal_id")
    private String terminalId;

    @ApiModelProperty(value = "车辆ID")
    @TableField("vehicle_id")
    private Long vehicleId;

    @ApiModelProperty(value = "采集时间")
    @TableField("collect_time")
    private Date collectTime;

    @ApiModelProperty(value = "ACC状态, 0-关, 1-开")
    @TableField("acc_status")
    private Integer accStatus;

    @ApiModelProperty(value = "定位状态, 0-未定位, 1-定位")
    @TableField("location_status")
    private Integer locationStatus;

    @ApiModelProperty(value = "纬度类别, 0-北纬, 1-南纬")
    @TableField("lati_type")
    private Integer latiType;

    @ApiModelProperty(value = "经度类别, 0-东经, 1-西经")
    @TableField("longi_type")
    private Integer longiType;

    @ApiModelProperty(value = "运营状态, 0-运营中, 1-停止运营")
    @TableField("operation_status")
    private Integer operationStatus;

    @ApiModelProperty(value = "加密状态, 0-经纬度未经保密插件加密, 1-经纬度已经保密插件加密")
    @TableField("encrypt_status")
    private Integer encryptStatus;

}
